<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>{$site_title}</title>
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/blendui/2.0.0/boost.min.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/template/default/css/webapp.css" />
  <script type="text/javascript" src="__PUBLIC__/template/default/js/jquery.min.js"></script>
  <script type="text/javascript" src="http://apps.bdimg.com/libs/blendui/2.0.0/boost.min.js"></script>
  <style>
      .blend-panel{background-color: #fff;}
      .blend-panel-header{color:#03ab9e;}
      a:active,a:hover,a:visited,a:focus,a{text-decoration: none; color:#333;}
      .blend-card-img-view img{ width: 50%; height: 50%;}
      /*.blend-card-content-view{ min-height: 70px;}*/
      .blend-card-no-icon{ min-height: 120px;}
      #content{ width: 345px; height: 70px; font-size: 1.5rem;}
      #customDialog{ left:10%; width: 80%;}
      .comment_child{ padding-left:50px;}
      .blend-header{ background-color: #03ab9e;}
  </style>
</head>

<body style="background-color:#fff;">
    <header data-blend-widget="header" class="blend-header header_title_bg">
        <span class="blend-header-left">
            <a class="blend-header-item  blend-button" href="javascript:history.go(-1);"><img src="__PUBLIC__/template/default/img/btn_back.png" style="height:28px;"/></a>
        </span>
        <span class="blend-header-title">
            <a class="blend-header-item">评论</a>
        </span>
        <span class="blend-header-right">
        </span>
    </header>

            <div class="blend-card blend-card-no-icon" style="position: relative;">
                <div class="blend-card-img-view" style=" float: left;  margin-right:-22px;">
                    <img src="{$parent[0]['avatar']}" style="border-radius:100%;;">
                </div>
                <div class="blend-card-content-view" style="width:75%;float: right; min-height: 70px; max-height:220px;">
                    <div class="blend-card-title">
                       <span>{$parent[0]['username']}</span>
                    </div>
                    <div class="blend-card-sub-title"><span>{$parent[0]['ctime']|date="Y-m-d H:i",###}</span></div>
                    <div class="blend-card-sub-title" style=" margin-top:10px;"><span style="font-size:1.6rem;">{$parent[0]['content']}</span></div>
                </div>
            </div>
        

        <volist name="child" id="vo">
            <div class="blend-card blend-card-no-icon comment_child" style=" position: relative; min-height:100px;">
                <div class="blend-card-img-view" style=" float: left;  margin-right:-22px;">
                    <img src="{$vo.avatar}" style="border-radius:100%;;">
                </div>
                <div class="blend-card-content-view" style="width:75%;float: right; min-height: 70px; max-height:220px;">
                    <div class="blend-card-title">
                       <span>{$vo.username}</span>
                    </div>
                    <div class="blend-card-sub-title"><span>{$vo.ctime|date="Y-m-d H:i",###}</span></div>
                    <div class="blend-card-sub-title" style=" margin-top:10px;"><span style="font-size:1.6rem;">{$vo.content}</span></div>
                </div>
            </div>
        </volist>
        

        <div id="customDialog" class="blend-dialog">
            <div class="blend-grid blend-container-fluid" style="margin-top:20px;">
                <div class="blend-formgroup">
                    <textarea class="blend-formgroup-input" id="content" name="content" placeholder="我想说两句..."></textarea>
                </div>
                <div class="" style=" margin-top:10px; margin-bottom:10px;">
                    <button class="blend-button blend-button-primary blend-button-large" id="success" style=" background-color:#03ab9e;">发布</button>
                </div>  
            </div>
        </div>

        <div class="footer_nav" style=" margin-top:10px;">
            <button class="blend-button blend-button-primary blend-button-large" id="submit" style=" background-color:#03ab9e;">我想说两句...</button>
        </div>  
          
    <!--最新检测结果end-->
    
    <div style='height:60px;'></div> 
    <!--底部菜单-->

<!--底部菜单end-->
<!--微信分享的基本信息-->
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>

$("#customDialog").dialog({
    maskTapClose:true,
    renderType:2
});
$(document).ready(function(){

    $("#submit").bind('click',function(){
        $(".blend-dialog").dialog("show");
    });


    $("#success").bind('click',function(){

        var content = $("#content").val();
        var id = {$id};
        var ctype = 6;
        var url = "{:U('M/Information/add_child_commnet')}";
        var now_url = window.location.href;
        $.ajax({
            type:'post',
            url:url,
            data:{content:content,id:id,ctype:ctype},
            dataType:'json',
            success:function(data){

                if(data==1){

                    window.location.href = now_url;
                }else if(data==2){

                  alert('存在敏感词!');
                }
            }
        });
    });
});
</script>
<include file="Index/foot_analyze"/>
<?php require_once 'cs.php';echo '<img src="'._cnzzTrackPageView(1256622573).'" width="0" height="0"/>';?>
</body>
</html>